import VueRouter from "vue-router";
import Layout from "@/views/Layout";
import Detail from "@/views/Detail";
import Vue from "vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/",
      redirect: "/layout",
    },
    {
      path: "/layout",
      component: Layout,
    },
    {
      path: "/detail",
      component: Detail,
    },
  ],
});

export default router;
